package com.woniuxy02;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Test04 {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap<String,String>();
        map.put("aaa","zs");
        map.put("bbb","ls");
        map.put("ccc","ww");
        map.put("ddd","wxw");

        Set<String> keys = map.keySet();
        for(String key:keys){
            System.out.println("key:"+key+",value:"+map.get(key));
        }

//        System.out.println(map);
//        map.put("ddd","xxx");
//        System.out.println(map);
//        map.put("ddd","yyy");
//        map.put("eee","yyy");
//        map.put("fff","yyy");
//        System.out.println(map);
//        System.out.println(map.get("aaa"));
//        System.out.println(map.get("bbb"));
//        System.out.println(map.get("uuu"));
        
        
    }
}
